<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/1.9.1/jquery.js"></script>
</head>
<body>
    <input type="text" id="input">
    <script>
        $(function($) {
            $.fn.extend({
                "calander": function() {
                    console.log(
                        this.val()
                    )
                }
            })

            let input = $('#input')
            input.on('focus', function() {
                input.calander()
            })

        })
    </script>
</body>
</html>